package com.nstar.base.validate
{
	import mx.validators.NumberValidator;
	
	/**
	 * 中文数字验证器
	 * 
	 * @author 李嘉陵
	 * @date 2007.1
	 */
	public class ChineseNumberValidator extends NumberValidator
	{
		public function ChineseNumberValidator() {
			super();
			
			//The decimal separator can only occur once."
			this.decimalPointCountError = "小数点只能出现一次。";
			
			//The number entered is too large.
			this.exceedsMaxError = "输入值过大。";
			
			//integerError="The number must be an integer." 
			this.integerError = "输入必须是数字。";
			
			//invalidCharError="The input contains invalid characters." 
			invalidCharError="输入中包含了无效的字符";
   			
   			//invalidFormatCharsError="One of the formatting parameters is invalid." 
   			invalidFormatCharsError="有一个格式参数无效。"
   
    		//lowerThanMinError="The number entered is too small." 
    		lowerThanMinError="输入值太小。" 
    
   			//negativeError="The number may not be negative." 
   			negativeError = "输入的数字不能为负。";

    		//precisionError="The number entered has too many digits beyond the decimal point." 
    		precisionError="小数点起数字太多。";
    		
    		//separationError="The thousands separator must be followed by three digits." 
			separationError="千位分割符必须紧随三位数字。";
			
			//requiredFieldError="This field is required."
			requiredFieldError="此项必须设置值。";
		}
	}
}